const arrayThunk = ({dispatch, getState}) => next => action => {
  if(Array.isArray(action)){
    console.log('3',dispatch)
    console.log('4',next)
    return action.forEach(v => dispatch(v))
  }
  return next(action)
}

export default arrayThunk